package com.javatest.springbootquartz.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2019-07-04 下午5:18
 */
@Slf4j
public class JobOnce2 implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.warn("JobOnce2 execute at " + LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));
    }
}
